/* 基础样式 */
html {
  scroll-behavior: smooth;
}
.hero-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #121212;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar-scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Logo样式 */
.logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.logo-icon {
  margin-right: 0.5rem;
  color: grey;
}

/* 桌面端导航 */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: grey;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.primary-btn {
  background-color: #1e88e5;
  color: white;
}

.primary-btn:hover {
  background-color: blue;
}

.secondary-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: block;
  color: white;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 移动端导航菜单 */
.mobile-menu {
  display: none;
  position: absolute;
  width: 100%;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-open {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.mobile-nav-link {
  padding: 0.5rem 0;
  text-decoration: none;
  color: #121212;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: grey;
}

.mobile-btn {
  width: 100%;
  padding: 0.5rem 0;
}

/* 英雄区样式 */
/* 英雄区样式（原有结构保留，仅调整定位） */
.hero-section {
  position: relative;
  height: 100vh; /* 保持英雄区占满一屏 */
  display: flex;
  align-items: center;
  overflow: hidden;
  /* 新增：给英雄区添加底部边界，避免与下方内容视觉重叠 */
  margin-bottom: 0;
}

/* 背景图与遮罩（核心修改：让背景固定） */
.hero-bg {
  /* 关键1：将背景容器固定在视口，不随滚动移动 */
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* 关键2：降低背景层级，确保下方内容能覆盖它 */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  /* 关键3：保留背景固定属性，与 position: fixed 配合增强兼容性 */
  background-attachment: fixed;
}

/* 背景遮罩（同步固定，确保遮罩随背景生效） */
.hero-overlay {
  position: fixed; /* 原先是 absolute，改为 fixed 跟背景同步 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 18, 18, 0.6);
  z-index: -1; /* 遮罩层级与背景一致，避免遮挡内容 */
}

/* 滚动提示（调整层级，确保固定在英雄区底部） */
.scroll-indicator {
  position: absolute; /* 保留 absolute，相对于 hero-section 定位 */
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
  z-index: 10; /* 确保提示在内容上方，不被遮挡 */
}
/* 英雄区内容 */
.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 42rem;
  color: white;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.highlight {
  color:blue;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* 滚动提示 */


.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
}

.scroll-link span {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* 动画效果 */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}
    